home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10320 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  840 b 

  1. Path: castle.nando.net!news
  2. From: actuary@nando.net   (Bill McCarthy)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: rand ?
  5. Date: 16 Mar 1996 19:52:18 GMT
  6. Organization: Nando.net Public Access
  7. Message-ID: <4if65i$d2h@castle.nando.net>
  8. References: <4idjt4$4du@itsop2.its.brooklyn.cuny.edu>
  9. Reply-To: actuary@nando.net (Bill McCarthy)
  10. NNTP-Posting-Host: grail1814.nando.net
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <4idjt4$4du@itsop2.its.brooklyn.cuny.edu>,
  14. dzielins@its.brooklyn.cuny.edu (Daniel Zielinski) writes:
  15.  
  16. >I need to generate random numbers between 0 and 51, I tried rand() with srand(i)
  17. >i changes constantly but the program never exits. looks like the random number
  18. >is always the same.  any help would be apriciated... thanss
  19.  
  20. What didn't you understand about the explanation in the FAQ?
  21.  
  22. Bill McCarthy
  23. actuary@nando.net
  24. Wendell, NC  USA
  25.  
  26.